package com.hp.his.charts.xml;

import javax.xml.bind.annotation.XmlAttribute;

/**
 * Each <set> element (child of <chart> element) represents a set of data which
 * is to be plotted on the graph and determines a set of data which would appear
 * on the chart.
 * */
public class Set {

	private String label;

	private String value;

	/**
	 * By default, FusionCharts shows the data item name and value as tool tip
	 * text for that data item. But, if you want to display more information for
	 * the data item as tool tip, you can use this attribute to specify the
	 * same.
	 */
	private String toolText;
	
	public Set(){
		
	}
	
	public Set(String value) {
		this.value = value;
	}
	
	public Set(String label, String value) {
		this.label = label;
		this.value = value;
	}

	@XmlAttribute
	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	@XmlAttribute
	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@XmlAttribute
	public String getToolText() {
		return toolText;
	}

	public void setToolText(String toolText) {
		this.toolText = toolText;
	}
	
}
